import request from '@/utils/request'

// 登录
export function login(params) {
  return request({
    url: '/login/logAccount',
    method: 'post',
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data: params
  })
}
// 用户信息
export function getInfo(token) {
  return request({
    url: '/login/userInfo',
    method: 'get',
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data: token
  })
}
// 退出
export function logout(token) {
  return request({
    url: '/user/logout',
    method: 'post',
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data: token
  })
}
// 菜单
export function getMenus(token) {
  return request({
    url: '/menu/queryTree',
    method: 'get',
    params: { token }
  })
}

export function wxLogin(){

  return request({

    url:'',
    method:'',

  })

}